/**
 * 工程类型
 * @type {[null,null,null,null,null,null,null,null,null,null,null]}
 */

import { OWNER_REPRESENTATIVE, PROJECT_RESPONSIBILITY, CHIEF_ENGINEER, CONSTRUCTION_ORGANIZATION, AUDIT_ORGANIZATION } from '@/conf/roles'

const  PROJECT_TYPE=[
  {
    key:"请选择项目类型",
    default:true,
    value:-1
  },{
    key:"房屋建筑工程",
    value:"房屋建筑工程"
  },{
    key:"冶炼工程",
    value:"冶炼工程"
  },{
    key:"矿山工程",
    value:"矿山工程"
  },{
    key:"化工石油工程",
    value:"化工石油工程"
  },{
    key:"水利水电工程",
    value:"水利水电工程"
  },{
    key:"电力工程",
    value:"电力工程"
  },{
    key:"农林工程",
    value:"农林工程"
  },{
    key:"铁道工程",
    value:"铁道工程"
  },{
    key:"公路工程",
    value:"公路工程"
  },{
    key:"港口与航道工程",
    value:"港口与航道工程"
  }
];

const INVEST_TYPE=[
  {
    default:true,
    key:"请选择投资模式",
    value:-1
  },{
    key:"政府投资",
    value:"政府投资"
  },{
    key:"私人投资",
    value:"私人投资"
  },{
    key:'企业投资',
    value:"企业投资"
  },{
    key:'外企投资',
    value:"外企投资"
  },{
    key:'团体集资',
    value:"团体集资"
  }];

const FUTURE_TYPE=[
  {
    disabled:true,
    key:"请选择",
    value:-1
  },{
    key:"是",
    value:1
  },{
    key:"否",
    value:0
  }
];

const  LAND_TYPE=[
  {
    default:true,
    key:"请选择",
    value:-1
  },{
    key:"是",
    value:1
  },{
    key:"否",
    value:0
  }
];

/**
 * 项目状态
 * @type {[null,null,null,null]}
 */
const PROJECT_STATUS=[
  {
    range:[0,1,2,3,4,5,6,7],
    value:"准备中"
  },{
    range:[8,9,10,11,12,13],
    value:"施工中"
  },{
    range:[14,15,16,17,18,19,20],
    value:"纠偏中"
  },{
    range:[99],
    value:"竣工"
  }
];

/**
 * 任务状态
 * @type {[null,null,null]}
 */
const TODOTASK_STATUS=[
  {
    key:"已完成",
    value:1
  },{
    key:"未完成",
    value:0
  }/*,{
    key:"执行中",
    value:2
  }*/
];

const ROLES=[
  {
    key:"业主代表",
    value:1
  },
  {
    key:"项目工程负责人",
    value:4
  },{
    key:"总工程师",
    value:5
  },{
    key:"施工单位",
    value:2
  },{
    key:"监理单位",
    value:3
  }
];

const TASK_TYPE_OPTIONS = {
}
TASK_TYPE_OPTIONS[OWNER_REPRESENTATIVE] = [
  {
    key: '审查进度计划',
    value: 4,
    name: 'OwnerCheckProgressPlan'
  },
  {
    key: '编制检查计划',
    name: 'EditOwnerCheckPlan',
    value: 5
  },
  {
    key: '按照计划检查结果',
    name: 'OwnerCheckProgressPlanResult',
    value: 8
  },
  {
    key: '延误审查分析',
    name: 'OwnerAnalyze',
    value: 11
  },
  {
    key: '落实情况',
    name: 'OwnerCheckResult',
    value: 14
  }
]
TASK_TYPE_OPTIONS[PROJECT_RESPONSIBILITY] = [
  {
    key: '进度检查计划审查',
    value: 6,
    name: 'EngineeringCheckProgressPlan'
  }
]
TASK_TYPE_OPTIONS[CHIEF_ENGINEER] = [
  {
    key: '进度检查计划审查',
    name: 'ResponsibilityCheckProgressPlan',
    value: 7
  }
]
TASK_TYPE_OPTIONS[CONSTRUCTION_ORGANIZATION] = [
  {
    key: '制定进度计划',
    value: 2,
    name: 'ViewProjectPlan'
  },
  {
    key: '延误影响分析',
    name: 'ConstructionAnalyze',
    value: 9
  },
  {
    key: '修改进度计划',
    value: 12,
    name: 'EditProjectPlan'
  }
]
TASK_TYPE_OPTIONS[AUDIT_ORGANIZATION] = [
  {
    key: '审查进度计划',
    value: 3,
    name: 'SupervisorCheckProgressPlan'
  },
  {
    key: '延误审查分析',
    name: 'SupervisorAnalyze',
    value: 10
  },
  {
    key: '审查新进度计划',
    name: 'SupervisorReviewPlan',
    value: 13
  }
]

/**
 * 将各个角色将要进行的任务大类进行分类
 */
const PRIMARY_TASK_TYPE=[
  {
    range:[2],
    key:"制定进度"
  },{
    range:[13,11,6,7,3,10,4],
    key:"审查"
  },{
    range:[12,9],
    key:"进度调整"
  },{
    range:[5,8,14],
    key:"进度检查"
  }

]


export { PROJECT_TYPE, INVEST_TYPE, LAND_TYPE, FUTURE_TYPE, PROJECT_STATUS, TODOTASK_STATUS, TASK_TYPE_OPTIONS };


